package up.android;

import up.android.gps.GPSActivity;
import up.android.json.calculadora.CalculadoraActivity;
import up.android.map.MapTestActivity;
import android.app.Activity;

public enum ViewListItem {

	GPS("GPS","Exemplo de uso do GPS",R.drawable.gps,GPSActivity.class),
	MAP("Google Maps", "Exemplo de uso do Google Maps",R.drawable.maps,MapTestActivity.class),
	CALC("Calculadora", "Exemplo de JSON simples",R.drawable.calculator,CalculadoraActivity.class);
	
	private final String label;
	private final String description;
	private final int image;
	private final Class<? extends Activity> activity; 
	
	ViewListItem(String label,String description,int image,Class<? extends Activity> activity)
	{
		this.label = label;
		this.description = description;
		this.image = image;
		this.activity = activity;
	}

	public Class<? extends Activity> activity()
	{
		return activity;
	}
	
	public String label()
	{
		return label;
	}
	
	public String description()
	{
		return description;
	}

	public int image() {
		return image;
	}
}
